<?php

namespace Respect\Http\Module;

use Respect\Environment\EnvironmentableInterface;

class Persist extends Put
{

    public static function qualify(EnvironmentableInterface $env)
    {
        return $env('REQUEST_METHOD') === 'PUT'
        || $env('REQUEST_METHOD') === 'POST' ? new static($env) : false;
    }

}